// 关机程序
#include <stdio.h>
#include <stdlib.h>
 
int main()
{
    char input[20] = {0};
    system("shutdown -s -t 60");
    again:
    printf("你的电脑将在 60 秒后关机，若想取消关机，请输入：取消关机\n");
    scanf("%s", input);
    if (strcmp(input, "取消关机") == 0)
    {
        printf("取消关机成功！\n");
        system("shutdown -a");
    }
    else
    {
        printf("取消关机失败！\n");
        goto again;
    }
    return 0;
}